package com.classtype.generic;

/**
 * 泛化的Class引用
 * 
 * @author Administrator
 * 
 */
public class Test {

	public static void main(String[] args) {
		// ?通配符
		Class<? extends Number> bounded = int.class;
		bounded = double.class;
		bounded = Number.class;
		
		Class<Number> bounded2 = Number.class;
		//不行，因为Integer的Class对象不是Number的Class对象的子类
		//bounded2 = int.class;
	}

}
